package com.kgc.controller;

import com.kgc.pojo.TicketCity;
import com.kgc.service.TicketCityService;
import com.kgc.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RestController
public class TicketCityController {
    @Autowired
    private TicketCityService ticketCityService;
    @RequestMapping("getTicketCity_yuan")
    public Object getTicketCity(){
        List<TicketCity> ticketCityList = ticketCityService.getTicketCity();
        return new Result(ticketCityList,"获取城市选项列表成功");
    }
}
